package com.demo.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 教师时间偏好实体类
 */
@TableName("teacher_preference")
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class TeacherPreference implements Serializable {
    
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    
    /**
     * 教师ID
     */
    @TableField("teacher_id")
    private Long teacherId;
    
    /**
     * 偏好类型：TIME_PREFERENCE-时间偏好 CLASSROOM_PREFERENCE-教室偏好
     */
    @TableField("preference_type")
    private String preferenceType;
    
    /**
     * 偏好内容（JSON格式）
     */
    @TableField("preference_content")
    private String preferenceContent;
    
    /**
     * 权重
     */
    @TableField("weight")
    private Integer weight;
    
    /**
     * 是否启用
     */
    @TableField("is_enabled")
    private Integer isEnabled;
    
    /**
     * 备注
     */
    @TableField("remark")
    private String remark;
    
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
























